import React, { Component } from 'react';
import {createStore}        from 'redux'
import logo from './logo.svg';
import './App.css';
import {foo as sb,sb1} from './moduleA'
class App extends Component {
  constructor(props){
    super(props)
    setTimeout(() => {
      console.log(sb,sb1)
    }, 500);
    
    // import('./moduleA')
    //   .then(({ foo }) => {
    //     console.log(foo)
    //   })
    //   .catch(err => {
    //     // Handle failure
    //   });
  }
  render() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to sb</h1>
        </header>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
      </div>
    );
  }
}

export default App;
